package com.zjt.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created with IntelliJ IDEA.
 * User: xueyanbeijing
 * Date: 12-9-1
 * Time: PM9:39
 * To change this template use File | Settings | File Templates.
 */
@Entity
//表名与类名不相同时重新定义表名.
@Table(name="s_bar_code_job")
public class BarCodeJob extends BaseEntity{
    private long userId;
    private String codeType;
    private String codeValue;
    private int status ;//0未采集 1 从物码中心采集，2 从厂商系统接口 3手动录入

    private int completeFlag;//-3（两者都没有）,-2（无名称，有企业信息）,-1（无企业，有名称信息），1（名称和企业都有）
    private int barcodeAuto = 0;//是否动态生成了该厂家相关的所有条形码；

    public int getBarcodeAuto() {
        return barcodeAuto;
    }

    public void setBarcodeAuto(int barcodeAuto) {
        this.barcodeAuto = barcodeAuto;
    }

    public int getCompleteFlag() {
        return completeFlag;
    }

    public void setCompleteFlag(int completeFlag) {
        this.completeFlag = completeFlag;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getCodeType() {
        return codeType;
    }

    public void setCodeType(String codeType) {
        this.codeType = codeType;
    }

    public String getCodeValue() {
        return codeValue;
    }

    public void setCodeValue(String codeValue) {
        this.codeValue = codeValue;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "BarCodeJob{" +
                "userId=" + userId +
                ", codeType='" + codeType + '\'' +
                ", codeValue='" + codeValue + '\'' +
                ", status=" + status +
                ", completeFlag=" + completeFlag +
                ", barcodeAuto=" + barcodeAuto +
                '}';
    }
}
